<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
 * FCKeditor - The text editor for Internet - http://www.fckeditor.net
 * Copyright (C) 2003-2010 Frederico Caldeira Knabben
 *
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 2 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
 *    http://www.gnu.org/licenses/lgpl.html
 *
 *  - Mozilla Public License Version 1.1 or later (the "MPL")
 *    http://www.mozilla.org/MPL/MPL-1.1.html
 *
 * == END LICENSE ==
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>FCKListHandler</title>
	<script type="text/javascript">

// Used by fckconfig
var FCK = new Object() ;

	</script>
	<script src="../../../editor/_source/fckscriptloader.js" type="text/javascript"></script>
	<script src="../_common/manual_test.js" type="text/javascript"></script>
	<script type="text/javascript">

FCKScriptLoader.Load( 'FCKListHandler' ) ;

	</script>
	<script type="text/javascript">

window.onload = function()
{
	UpdateHtml() ;
}

function Outdent()
{
	FCKListHandler.OutdentListItem( document.getElementById( document.getElementById( 'xItems' ).value ) ) ;
	UpdateHtml() ;
}

function UpdateHtml()
{
	document.getElementById('xHtml').value = document.getElementById('xItemsArea').innerHTML ;
}

	</script>
</head>
<body>
	<h1>
		FCKListHandler</h1>
	<p>
		Select a List Item:
		<select id="xItems">
			<option value="x1">1</option>
			<option value="x2">2</option>
			<option value="x3">3</option>
			<option value="x4">4</option>
			<option value="x5">5</option>
			<option value="x6">6</option>
			<option value="x7">7</option>
			<option value="x8">8</option>
			<option value="x9">9</option>
			<option value="x10">10</option>
			<option value="x11">11</option>
			<option value="x12">12</option>
			<option value="x13">13</option>
			<option value="x14">14</option>
			<option value="x15">15</option>
			<option value="x16">16</option>
			<option value="x17">17</option>
			<option value="x18">18</option>
			<option value="x19">19</option>
			<option value="x20">20</option>
			<option value="x21">21</option>
			<option value="x22">22</option>
		</select>
		<input type="button" value="Outdent" onclick="Outdent();" />
	</p>
	<table width="100%">
		<tr>
			<td valign="top" width="350" id="xItemsArea">
<ul>
	<li id="x1">List item (1)</li>
	<li id="x2">List item (2)</li>
	<li id="x3">List item (3)
		<ul>
			<!-- Comment before (4) -->
			<li id="x4">List item (4)</li>
			<!-- Comment after (4) -->
			<li id="x5">List item (5)</li>
			<!-- Comment after (5) -->
			<li id="x6">List item (6)</li>
			<!-- Comment after (6) -->
			<li id="x7">List item (7)</li>
			<!-- Comment after (7) -->
		</ul>
	</li>
	<li id="x8">List item (8)</li>
	<li id="x9">List item (9)</li>
	<li id="x10">List item (10)
		<ol>
			<li id="x11">List item (11)</li>
			<li id="x12">List item (12)
				<ul>
					<li id="x13">List item (13)</li>
					<li id="x14">List item (14)</li>
					<li id="x15">List item (15)</li>
				</ul>
			</li>
			<li id="x16">List item (16)</li>
		</ol>
	</li>
	<li id="x17">List item (17)</li>
	<ol>
		<li id="x18">Incorrectly Nested List item (18)</li>
		<li id="x19">Incorrectly Nested List item (19)</li>
		<ul>
			<li id="x20">Incorrectly Nested List item (20)</li>
			<li id="x21">Incorrectly Nested List item (21)</li>
		</ul>
		<li id="x22">Incorrectly Nested List item (22)</li>
	</ol>
</ul>
			</td>
			<td valign="top">
				<input type="button" value="Update HTML" onclick="UpdateHtml();" /><br />
				<textarea id="xHtml" style="width: 100%" rows="25" cols="40" wrap="off"></textarea>
			</td>
		</tr>
	</table>
</body>
</html>
